package com.usian.admin.controller;

import com.usian.admin.service.AdUserService;
import com.usian.apis.admin.LoginControllerApi;
import com.usian.model.admin.dtos.AdUserDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/login")
@RestController
public class AdUserController implements LoginControllerApi {

    @Autowired
    AdUserService adUserService;
    /**
     * 登录用户
     * @param adUserDto
     * @return
     */
    @Override
    @PostMapping("/in")
    public ResponseResult login(AdUserDto adUserDto) {
        return adUserService.login(adUserDto);
    }
}
